package rpc05;

import com.hl.rpc.service.IUserService;

/**
 * Created by yuanhailong on 2021/10/30.
 */
public class Client {
    public static void main(String[] args) throws Exception{
        IUserService service = (IUserService) Stub.getStub(IUserService.class);
        System.out.println("客户端接受服务端消息："+service.find());
        System.out.println("客户端接受服务端消息："+service.findUserById(111));
    }
}
